package com.wondersgroup.fjzlpt.console.service.impl.xzqh;

import com.wondersgroup.fjzlpt.console.utils.ControllerCommonUtils;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.alibaba.fastjson.JSONArray;
import com.wondersgroup.fjzlpt.console.dao.inter.xzqh.XzqhDAO;
import com.wondersgroup.fjzlpt.console.service.inter.xzqh.XzqhService;

@Service
public class XzqhServiceImpl implements XzqhService{

	@Autowired
	private XzqhDAO xzqhDao;

	/**
	 * 根据级别查询
	 * @param sjdm
	 * @return
	 */
	public JSONArray queryBySjdm(String sjdm)
	{
		
		if(StringUtils.isEmpty(sjdm))
		{
			sjdm = ControllerCommonUtils.sjdm;
		}
		JSONArray ary = this.xzqhDao.queryBySjdm(sjdm);
		return ary;
	}

}
